package com.badibadi.mytools;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.json.JSONArray;
import org.json.JSONObject;

import android.os.Handler;

import com.amap.api.maps2d.model.LatLng;
import com.badibadi.infos.Activity_Overview_Model;
import com.badibadi.infos.LoginModel;

public class Constants {
	// kobeloveme
	/** 所有app九宫格 100px*100px */
	public static final String App9block = "!App9block";
	/** 所有app个人俱乐部的背景图，所有活动列表的封面图，所有记录（个人/俱乐部/每日一记/地区）列表封面图部分 **/
	public static final String Appactivitycover = "!Appactivitycover";
	/** app所有瀑布流 */
	public static final String appWaterfall = "!appWaterfall";
	/** App动态的发活动，创建俱乐部，写记录的图的大小 180*120 */
	public static final String AppmomentImg = "!AppmomentImg";
	/** 所有俱乐部-图片/个人-图片 版型的正方形小图 */
	public static final String appPhoto4img = "!appPhoto4img";
	public static final String appPhoto4img_1 = "!appsliderimg";

	public static final String appBGimg = "!appBGimg";

	public static final String Appalbum3 = "!Appalbum3";
	public static final String Appalbum1 = "!Appalbum1";
	public static final String Album2big = "!album2big";// 第二个版型的大图
	
//	// 内网地址
//	// 下载图片地址前缀
//	public static final String BadiUrl = "http://192.168.10.105/uniclubber/App/Index/";// 请求服务器地址
//	public static final String BadiUrl_1 = "http://192.168.10.105/uniclubber/App/";
//	// "http://192.168.2.106:8080/badibadi";// 下载图片地址前缀
//	public static final String BadiFile = "http://192.168.10.105/uniclubber/Public/App/apk/version.xml";
//	public static final String BadiDownloadUrl = "http://192.168.10.105/uniclubber/Public/App/apk/uniclubber.apk";
//	public static final String BadiWebImgUrl = "http://192.168.10.105";//
//	// 下载图片地址前缀
//	public static final String BadiDownImgUrl = "http://photo.uniclubber.com";// 又拍云下载图片地址前缀
//	public static final String YuyingDownLoad = "http://192.168.10.105/uniclubber/";// 语音下载地址和二维码扫描地址前缀

	// 外网地址
	public static final String BadiUrl = "http://www.uniclubber.com/App/Index/";// 请求服务器地址
	public static final String BadiUrl_1 = "http://www.uniclubber.com/App/";
	public static final String BadiDownImgUrl = "http://photo.uniclubber.com";//
	public static final String BadiFile = "http://www.uniclubber.com/Public/App/apk/version.xml";
	public static final String BadiDownloadUrl = "http://www.uniclubber.com/Public/App/apk/uniclubber.apk";
	public static final String BadiWebImgUrl = "http://www.uniclubber.com";//
	public static final String YuyingDownLoad = "http://www.uniclubber.com/";// 语言下载地址

	// 下面这四个主要是为了站内信中排除表情
	public static final String Fei_biaoqing_qianzui = "http://photo";// 又拍云图片的判断
	public static final String Fei_biaoqing_qianzui2 = "http://www";// 外网地址图片判断
	public static final String Fei_biaoqing_qianzui3 = "/Public/Uploads/";// 表明是又拍云前缀
	public static final String Fei_biaoqing_qianzui4 = "/Public/js/";// 用于判断后台的编辑器前缀（表明是编辑器前缀）

	public static final String share_no_image_share_address = "http://photo.uniclubber.com/Public/Uploads/2015-01/142252309091222.png";
	// 下载图片地址前缀

	// // 调试
	// public static final String apayUrl =
	// "http://openapi.alipaydev.com/gateway.do";
	// 线上
	// public static final String
	// apayUrl="https://openapi.alipay.com/gateway.do";
	// sourse___>>http://192.168.2.107:8080/badibadi/space/info/jump/8.html
	
	public static final String YuyingQianZui = "/Public/music";
	
	// 二维码空间的前缀
	public static final String ErWeiMa_Space = "http://192.168.2.102:8080/badibadi/"
			+ "space/info/jump/";
	// 二维码俱乐部的前缀
	public static final String ErWeiMa_Club = "http://www.uniclubber.com/badibadi/"
			+ "blog/look/reach/";

	// 调试
	public static final String apayUrl = "http://openapi.alipaydev.com/gateway.do";

	// 下载图片地址前缀
	// // 调试
	// public static final String apayUrl =
	// "http://openapi.alipaydev.com/gateway.do";
	// 线上
	// public static final String
	// apayUrl="https://openapi.alipay.com/gateway.do";
	// sourse___>>http://192.168.2.107:8080/badibadi/space/info/jump/8.html

	public static final String appId = "2088211506667026";
	public static final String privateKey = "v37fzb3bex23u3ah79ni4ga9wfamfhwo";
	// <string name="appId"></string>
	// <string name="privateKey">v37fzb3bex23u3ah79ni4ga9wfamfhwo</string>

	public static boolean is_shuaxin = false;// 判断页面是否允许被刷新
    
	public static boolean is_shuaxin_picturePreview=false;//这个只用于图片预览（编辑后）的刷新操作,怕与is_shuaxin冲突新建了一个
	/**
	 * 1km的经度差
	 */
	public static final double km_1_to_jingdu = 0.0090;//
	/**
	 * 1km的纬度差
	 */
	public static final double km_1_to_weidu = 0.0117;//

	/**
	 * 临时保存用户id
	 */
	public static String The_user_ID = null;// 用户id
	/**
	 * 首页数据类型更新handler
	 */
	public static Handler FirstPageData_handler = null;
	/**
	 * 开始时间
	 */
	public static String START_TIME = null;
	public static String START_TIME_default = null;// 默认开始时间
	/**
	 * 结束时间
	 */
	public static String END_TIME = null;
	public static String END_TIME_default = null;// 默认结束时间
	/**
	 * 上传图片的handler
	 */
	public static Handler UpImg_handler = null;

	/**
	 * 更新标题使用的handler
	 */
	public static Handler UpLoad_Tital;

	/**
	 * 活动标题更新handler
	 */
	public static Handler Activity_tital_handler;

	/**
	 * 邀请消息界面的handler
	 */
	public static Handler Invite_handler = null;

	/**
	 * 临时发送申请表内容handler
	 */
	public static Handler Send_Apply_handler = null;

	/**
	 * 登出hander
	 */
	public static Handler Dengchu_handler = null;
	public static Handler Before_handler = null;
	public static Handler Close_Chat_handler = null;
	// /**
	// * 临时存储@的好友名字
	// */
	// // public static Map<Integer, String> strings = new HashMap<Integer,
	// // String>();
	// public static List<MyFriendsModel> friendsModels;
	/**
	 * 发送的handler的what
	 */
	public static final int friendupdata = 1000;

	/**
	 * 登陆后图片显示类型
	 */
	// public static int MAIN_Type = 3;

	/**
	 * 更新@好友的handler
	 */
	public static Handler friendupdata_handler;

	/**
	 * 期间的活动
	 */
	public static List<Activity_Overview_Model> overview_Models;

	public static boolean is_initiator = true;// 判断发起者和参与者的参数true为发起者,否则为参与者

	/**
	 * 临时存储期间活动编号
	 */
	public static List<Integer> temp_num;

	public static Map<String, Object> temp_map = new HashMap<String, Object>();
	// /**
	// * 临时存储多张图片地址的地方
	// */
	public static Handler num_up_img_handler;

	/**
	 * 临时存储创建记录的jsonarray
	 */
	// public static JSONObject array_record;
	/**
	 * 临时存储创建记的jsonarray
	 */
	// public static JSONArray array_article = new JSONArray();

	/**
	 * 临时存储接受者的id变量
	 */
	public static String temp_socket_id = null;
	/**
	 * 更新聊天界面消息的handler
	 */
	public static Handler Chat_handler = null;
	/**
	 * 新消息的handler
	 */
	public static Handler New_Mes_handler = null;

	/**
	 * 用于判断是否进入别人的主页
	 */
	public static boolean is_ziji = false;

	/**
	 * 时间搜索是true，内容搜索是false
	 */
	public static boolean content_or_time = false;

	/**
	 * 判断是个人主页界面还是俱乐部主页界面(个人：true,俱乐部:false)
	 */
	// public static boolean judge_person_zhuye = true;

	public static final int ERROR = 1001;// 网络异常
	public static final int ROUTE_START_SEARCH = 2000;
	public static final int ROUTE_END_SEARCH = 2001;
	public static final int ROUTE_BUS_RESULT = 2002;// 路径规划中公交模式
	public static final int ROUTE_DRIVING_RESULT = 2003;// 路径规划中驾车模式
	public static final int ROUTE_WALK_RESULT = 2004;// 路径规划中步行模式
	public static final int ROUTE_NO_RESULT = 2005;// 路径规划没有搜索到结果

	public static final int GEOCODER_RESULT = 3000;// 地理编码或者逆地理编码成功
	public static final int GEOCODER_NO_RESULT = 3001;// 地理编码或者逆地理编码没有数据

	public static final int POISEARCH = 4000;// poi搜索到结果
	public static final int POISEARCH_NO_RESULT = 4001;// poi没有搜索到结果
	public static final int POISEARCH_NEXT = 5000;// poi搜索下一页

	public static final int BUSLINE_LINE_RESULT = 6001;// 公交线路查询
	public static final int BUSLINE_id_RESULT = 6002;// 公交id查询
	public static final int BUSLINE_NO_RESULT = 6003;// 异常情况

	public static final LatLng BEIJING = new LatLng(39.90403, 116.407525);// 北京市经纬度
	public static final LatLng ZHONGGUANCUN = new LatLng(39.983456, 116.3154950);// 北京市中关村经纬度
	public static final LatLng SHANGHAI = new LatLng(31.238068, 121.501654);// 上海市经纬度
	public static final LatLng FANGHENG = new LatLng(39.989614, 116.481763);// 方恒国际中心经纬度
	public static final LatLng CHENGDU = new LatLng(30.679879, 104.064855);// 成都市经纬度
	public static final LatLng XIAN = new LatLng(34.341568, 108.940174);// 西安市经纬度
	public static final LatLng ZHENGZHOU = new LatLng(34.7466, 113.625367);// 郑州市经纬度
	/**
	 * 临时保存用户登录后的值
	 */
	public static LoginModel model = new LoginModel();

	public final static int COLUMN_COUNT = 2; // 显示列数

	public final static int PICTURE_COUNT_PER_LOAD = 15; // 每次加载30张图片

	public final static int PICTURE_TOTAL_COUNT = 10000; // 允许加载的最多图片数

	public final static int HANDLER_WHAT = 1;

	public final static int MESSAGE_DELAY = 100;

}
